<?php
// +----------------------------------------------------------------------
// | ThinkCMF [ WE CAN DO IT MORE SIMPLE ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2018 http://www.thinkcmf.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小西瓜 <751707632@qq.com.com>
// +----------------------------------------------------------------------
namespace app\fowl\model;

use app\admin\model\RouteModel;
use think\Model;               
use tree\Tree;
use think\Db;

class ImsMeetingJoinModel extends Model
{

    protected $type = [
        'more' => 'array',
    ];

    /**
     * 查询参会人员列表
     * @param array $where 查询条件
     * @param string $order 查询顺序
     * @return array
     */
    public function confereeList($where=array(), $order='', $field='mj.is_must,im.staff_number,im.staff_name,im.staff_duty,im.staff_deptname, im.staff_pic')
    {
        $list = $this->alias('mj')
        ->join('__IMS_MEMBER__ im','im.id = mj.join_id', 'left')
        ->field($field)
        ->where($where)->order($order)->select()->toArray();

        return $list;
    }
}